package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.api.domain.SysLeaveRequest;
import org.apache.ibatis.annotations.Param;

/**
 * 【请假申请】Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-20
 */
public interface SysLeaveRequestMapper extends BaseMapper<SysLeaveRequest> {
    /**
     * 查询【请假申请】
     * 
     * @param requestId 【请假申请】主键
     * @return 【请假申请】
     */
    public SysLeaveRequest selectSysLeaveRequestByRequestId(Long requestId);

    /**
     * 查询【请假申请】列表
     * 
     * @param sysLeaveRequest 【请假申请】
     * @return 【请假申请】集合
     */
    public List<SysLeaveRequest> selectSysLeaveRequestList(SysLeaveRequest sysLeaveRequest);

    /**
     * 修改【请假申请】
     * 
     * @param sysLeaveRequest 【请假申请】
     * @return 结果
     */
    public int updateSysLeaveRequest(SysLeaveRequest sysLeaveRequest);

    /**
     * 批量删除【请假申请】
     * 
     * @param requestIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysLeaveRequestByRequestIds(Long[] requestIds);

    Long getPostUserId(@Param("deptId") Long deptId,@Param("approverPost") Long approverPost);

    Long getapproverPostId(Long postId);
}
